
//
//  BaseViewModel.swift
//  民生生活
//
//  Created by apple on 2017/8/7.
//  Copyright © 2017年 youjindi.app.com. All rights reserved.
//

import UIKit
import ReactiveSwift
import ReactiveCocoa
import Result

class BaseViewModel: NSObject {

    
    var dataArray = Array<Any>()
    
    open func getDataWithGet(url: String,completion:@escaping (AnyObject?) -> ()){
        BaseNetWorkManager.shared.request(urlString: url, parameters: nil, completion: completion)
        
    }
    
    open func postDataWithGet(url: String ,parameters: [String: AnyObject]?,completion:@escaping (AnyObject?) -> ()){
        BaseNetWorkManager.shared.request(urlString: url, parameters: parameters, completion: completion)
        
    }
    
}
